package com.itheima.spring.bestpractive.pojo;


import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.stereotype.Repository;

@Repository
@Data
public class Employee {
    @Schema(description="员工的唯一标识编号")
    private Long employeeId;
    @Schema(description = "员工身份证")
    private String idCard;
    @Schema(description="员工姓名")
    private String name;
    @Schema(description="员工性别，取值为男或女")
    private String gender;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Schema(description="员工出生日期")
    private Date birthDate;
    @Schema(description="联系方式（电话）")
    private String phone;
    @Schema(description="员工照片")
    private String photo;
    @Schema(description="员工邮箱")
    private String email;
    @Schema(description="所属部门")
    private Long departmentId;
    @Schema(description="岗位名称")
    private String position;
    @Schema(description = "员工密码")
    private String password;
    @Schema(description = "入职时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date hireDate;
    @Schema(description = "上次登录时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date lastLoginTime;
    @Schema(description = "员工状态，取值为1或0，1为启用，0为禁用")
    private Integer status;
}
